package com.example.dy.dy_bigtask.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Sharper {
    // @Range(max = 100 , min = 1 , message = "ID范围：1 ~ 100")
    private Integer sid; //id
    private String sName; //模具名称
    private Integer sPosition; //模具位置
    private Integer state;  //模具状态
//    @DateTimeFormat(pattern = "yy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date date;  //借用时间
    private Integer user;   //借用人
    private String type; //种类
    private String mechine;
    private String username;
    private String statename;

    public String getStatename() {
        return statename;
    }

    public void setStatename(String statename) {
        this.statename = statename;
    }

    public String getMechine() {
        return mechine;
    }

    public void setMechine(String mechine) {
        this.mechine = mechine;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public Integer getsPosition() {
        return sPosition;
    }

    public void setsPosition(Integer sPosition) {
        this.sPosition = sPosition;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date =date;
        System.out.println(date);
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
